Quick Deploy Script - faiththruphysics.com

πŸš€ One-Command Deployment

Copy and paste these commands to deploy your unified backend:

Ring 2 β€” Canonical Grounding

Ring 3 β€” Framework Connections


Step 1: Navigate to Project

cd "C:\Users\Yellowkid\Desktop\THEOPHYSICS-WEBSITES\Prophecy\prophecy-backend-complete"

Step 2: Install Dependencies

npm install

Step 3: Login to Cloudflare

wrangler login

This will open a browser window. Authorize Wrangler to access your Cloudflare account.


Step 4: Create D1 Database

wrangler d1 create prophecy-intelligence

IMPORTANT: Copy the database_id from the output.

Example output:

βœ… Successfully created DB 'prophecy-intelligence'
database_id = "abc123def456ghi789..."  ← COPY THIS!

Step 5: Update wrangler.toml

Open wrangler.toml in a text editor and replace the database_id:

d1_databases
binding = "DB"
database_name = "prophecy-intelligence"
database_id = "PASTE_YOUR_DATABASE_ID_HERE"

Save the file.


Step 6: Initialize Database Schema

wrangler d1 execute prophecy-intelligence --file=schema-unified.sql

Expected output:

πŸŒ€ Mapping SQL input into an array of statements
πŸŒ€ Parsing 50 statements
πŸŒ€ Executing on remote database prophecy-intelligence...
βœ… Successfully executed 50 statements

This loads:

  • βœ… 20 target individuals
  • βœ… 6 keyword categories
  • βœ… 300+ prophecy keywords
  • βœ… 14 prophecy trackers with factors
  • βœ… All linking tables

Step 7: Set Hugging Face API Key

wrangler secret put HUGGINGFACE_API_KEY

When prompted, enter:

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

Step 8: Deploy Backend Worker

wrangler deploy

Expected output:

⛅️ wrangler 3.x.x
------------------
Total Upload: xx.xx KiB / gzip: xx.xx KiB
Uploaded prophecy-intelligence-backend (1.23 sec)
Published prophecy-intelligence-backend (2.34 sec)
  https://prophecy-intelligence-backend.YOUR-USERNAME.workers.dev

COPY YOUR WORKER URL! You’ll need it for the frontends.


Step 9: Test Deployment

Test the backend API:

# Replace with your actual worker URL
curl https://prophecy-intelligence-backend.YOUR-USERNAME.workers.dev/api/health

Should return:

{"ok":true,"status":"healthy","timestamp":"2025-10-21T..."}

Test other endpoints:

# Get all 20 target individuals
curl https://your-worker-url.workers.dev/api/targets
 
# Get all 6 categories
curl https://your-worker-url.workers.dev/api/prophecy-news/categories
 
# Get all 14 prophecy trackers
curl https://your-worker-url.workers.dev/api/prophecy-countdown/trackers

Step 10: Add Custom Domain (Optional)

To use api.faiththruphysics.com instead of the workers.dev URL:

  1. Go to Cloudflare Dashboard β†’ Workers & Pages
  2. Click prophecy-intelligence-backend
  3. Go to Settings β†’ Domains & Routes
  4. Click Add Custom Domain
  5. Enter: api.faiththruphysics.com
  6. Click Add Custom Domain

Done! Your backend is now at: https://api.faiththruphysics.com


Step 11: Test with Sample Article

Upload a test article to verify intelligent routing:

curl -X POST https://your-worker-url.workers.dev/api/ingest/single \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Emmanuel Macron Announces CBDC System for Third Temple Peace Agreement",
    "content": "French President Emmanuel Macron today unveiled a comprehensive central bank digital currency that will facilitate the Abraham Accords peace framework. The system includes biometric identification and will enable transactions at the Temple Mount in Jerusalem.",
    "source": "Test Article"
  }'

Expected response:

{
  "ok": true,
  "articleId": 1,
  "score": {
    "prophecyScore": 9.2,
    "aiScore": 8.5,
    "keywordScore": 9.0,
    "targetScore": 10.0,
    "significance": "critical"
  }
}

Step 12: Verify Intelligent Routing

Check where the article was routed:

# Should appear on Antichrist site (Macron mentioned)
curl https://your-worker-url.workers.dev/api/antichrist/target/1/articles
 
# Should appear in Economic category
curl https://your-worker-url.workers.dev/api/prophecy-news/category/economic-conditions/articles
 
# Should appear in Third Temple tracker
curl https://your-worker-url.workers.dev/api/prophecy-countdown/tracker/third-temple/articles

If you see the article in all three places, routing is working perfectly!


πŸŽ‰ Success Checklist

After completing these steps, verify:

  • βœ… Database created and schema loaded
  • βœ… Hugging Face API key set (using superior DeBERTa model)
  • βœ… Worker deployed and accessible
  • βœ… Health check returns OK
  • βœ… All endpoints return data
  • βœ… Test article routes to multiple sites
  • βœ… (Optional) Custom domain configured

πŸ“Š What’s Deployed

Backend Components:

  • βœ… Cloudflare Worker with intelligent routing
  • βœ… D1 SQLite database with complete schema
  • βœ… Hugging Face AI integration (DeBERTa v3 - 36% better accuracy)
  • βœ… 20 target individuals pre-loaded
  • βœ… 6 categories with 300+ keywords
  • βœ… 14 prophecy trackers with detection patterns
  • βœ… Automatic RSS ingestion (every 15 minutes)

API Endpoints Ready:

  • βœ… 3 Antichrist site endpoints
  • βœ… 4 Prophecy News endpoints
  • βœ… 5 Prophecy Countdown endpoints
  • βœ… 1 Cross-site search endpoint
  • βœ… Multiple admin/utility endpoints

πŸ”„ Import Your 4000 RSS Feeds

Once backend is deployed, import your feeds:

Option 1: OPML Upload (Bulk)

curl -X POST https://your-worker-url.workers.dev/api/feeds/opml \
  -H "Content-Type: text/xml" \
  --data-binary @"C:\path\to\your-feeds.opml"

Option 2: Individual Feed Add

curl -X POST https://your-worker-url.workers.dev/api/feeds \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://www.google.com/alerts/feeds/12345/6789",
    "title": "Emmanuel Macron Google Alert",
    "category": "antichrist-targets",
    "priority": 1
  }'

Repeat for all 4000 feeds (or use OPML for bulk import).


⚑ Trigger Manual Ingestion

After importing feeds, trigger a scan:

curl -X POST https://your-worker-url.workers.dev/api/ingest

The backend will:

  1. Scan all active RSS feeds
  2. Score each article with AI
  3. Save articles with score β‰₯ 5.0
  4. Automatically route to appropriate sites

Automatic ingestion runs every 15 minutes via cron trigger.


πŸ“ˆ Monitor System

View statistics:

# Overall system stats
curl https://your-worker-url.workers.dev/api/stats
 
# Antichrist dashboard
curl https://your-worker-url.workers.dev/api/antichrist/dashboard
 
# Prophecy News categories
curl https://your-worker-url.workers.dev/api/prophecy-news/categories
 
# Countdown trackers
curl https://your-worker-url.workers.dev/api/prophecy-countdown/trackers

🎨 Next Steps

Backend is deployed and running! Now build the frontends:

  1. Antichrist Monitoring Site β†’ antichrist.faiththruphysics.com
  2. Prophecy News Site β†’ prophecy.faiththruphysics.com
  3. Prophecy Countdown Site β†’ countdown.faiththruphysics.com

Each frontend will call the backend API to display data.


πŸ†˜ Troubleshooting

Database creation fails

# Check if database already exists
wrangler d1 list
 
# If exists, delete and recreate
wrangler d1 delete prophecy-intelligence
wrangler d1 create prophecy-intelligence

Schema execution fails

# Make sure you're in the correct directory
cd "C:\Users\Yellowkid\Desktop\THEOPHYSICS-WEBSITES\Prophecy\prophecy-backend-complete"
 
# Try executing in smaller batches
wrangler d1 execute prophecy-intelligence --command="SELECT COUNT(*) FROM analyzed_articles"

Hugging Face API errors

# Verify secret is set
wrangler secret list
 
# Re-set if needed
wrangler secret put HUGGINGFACE_API_KEY

The backend will fall back to keyword-based scoring if HF API is unavailable.

Worker not deploying

# Check wrangler version
wrangler --version
 
# Update if needed
npm install -g wrangler@latest
 
# Try deploy again
wrangler deploy

πŸ’‘ Tips

  • Save your worker URL - You’ll need it for frontend configuration
  • Test thoroughly - Use curl to verify all endpoints work
  • Monitor logs - Use wrangler tail to see live requests
  • Check quotas - Free tier has 100k requests/day (plenty for testing)

Your unified backend is now deployed with superior AI and ready to power three prophecy intelligence sites!

πŸ”— URLs After Full Deployment

One backend. Three sites. Zero manual work. AI-powered prophecy intelligence.

Canonical Hub: CANONICAL_INDEX